<!DOCTYPE HTML>
<#assign base=request.contextPath />
<html>
<head>
    <title>用户登录</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="//cdn.bootcss.com/jquery/3.2.0/jquery.js"></script>
<script type="text/javascript" src="${base}/js//bootstrap.min.js"></script>
</head>

<body>
	<div id="main">
		<form id="login" action="${base}/member/login" method="post">
		    <input type="text" v-model="member.loginName" class="form-control" placeholder="用户名">
		    <input type="text" v-model="member.password"  class="form-control" placeholder="密码">
			<button type="submit"   class="btn btn-primary" autocomplete="off" >
				登录
			</button>
		</form>
		<form id="register" >
		    <input type="text" v-model="member.loginName" class="form-control" placeholder="用户名">
		     <input type="text" v-model="member.realName" class="form-control" placeholder="姓名">
		    <input type="password" v-model="member.password"  class="form-control" placeholder="密码">
		</form>
		
		<!-- <button type="button"   class="btn btn-primary" autocomplete="off" @click="login()">
			登录
		</button> -->
		<button type="button"  class="btn btn-primary" autocomplete="off" @click="regist()">
			注册
		</button>
	</div>
	
	
	
<script type="text/javascript"  src="//cdn.bootcss.com/echarts/3.4.0/echarts.js"></script>

<script type="text/javascript" src="${base}/js/vue.min.js"></script>
<script type="text/javascript" src="${base}/js/vue-resource.min.js"></script>

   <script type="text/javascript">
   		var detailUrl  = "/member/login";
   		Vue.http.options.emulateJSON = true;
   		var v = new Vue({
   		  el: '#main',
   		  data: {
   			member:{},
   			endDate:'',
   			fundModal:{}
   		  },
   		 methods:{
   			 login:function(){
   				/*  this.$http.post("${base}/member/login",JSON.stringify(this.$data.member))
   				 	.then(function(result){
   						 this.$set('fundList',result.data.data);
   				 }) */
   			 },
   			regist:function(code){
   				this.$http.post("${base}/member/save",JSON.stringify(this.$data.member))
   					.then(function(result){
   					
   				});
   			},
   		 }
   		 })
    </script>
</body>
</html>